[Feature] Add Slipstream Plugin Support#4175
Open
dgrkotsonis wants to merge 32 commits intostagingfrom
Open
Conversation
dgrkotsonis
commented
Mar 17, 2026
dgrkotsonis
commented
Mar 18, 2026
| @@ -0,0 +1,198 @@ | |||
| # Slipstream Plugins | |||
Collaborator
Author
There was a problem hiding this comment.
Is there a better place to put this file rather than creating this new docs dir? (Unlike snarkVM there isn't a specific plugins crate to put this in)
b64e6b9 to
4da9990
Compare
92c055e to
af7c207
Compare
289408f to
ec83f3f
Compare
dgrkotsonis
commented
Apr 30, 2026
Comment on lines
+272
to
+279
| #[cfg(feature = "slipstream-plugins")] | ||
| let routes = routes | ||
| .route("/slipstream/plugins", get(Self::slipstream_list_plugins).post(Self::slipstream_load_plugin)) | ||
| .route( | ||
| "/slipstream/plugins/{name}", | ||
| // TODO: PUT (reload) is not yet implemented. | ||
| axum::routing::delete(Self::slipstream_unload_plugin), | ||
| ); |
Collaborator
Author
There was a problem hiding this comment.
Would it make sense to put these behind the auth middleware? Could foresee this being a potential issue if in theory anyone is able to hit a node and unload plugins
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Wires the new Slipstream plugin system into snarkOS so that node operators can load one or more streaming plugins at startup and manage them at runtime via authenticated REST endpoints. Validator and Client nodes both support plugins; Prover nodes do not (they do not finalize blocks).
Changes
Cargo / feature wiring
slipstream-pluginsfeature flag to enable it alongside the corresponding snarkvm features.CLI
Node layer
REST API
PUT (reload) is not yet implemented and is left as a TODO.
Error mapping: PluginNotLoaded → 404, PluginAlreadyLoaded → 422, all others → 500.
Tests / docs
Usage
Build with plugin support
cargo build --release --features slipstream-plugins
Start a client node with two plugins
snarkos start --client \
--slipstream-config ~/.aleo/plugins/postgres/plugin.json5 \
--slipstream-config ~/.aleo/plugins/metrics/plugin.json5
List loaded plugins
curl http://localhost:3030/mainnet/slipstream/plugins
Load a new plugin at runtime
curl -X POST -H "Content-Type: application/json" \
-d '{"config_file":"/path/to/plugin.json5"}' \
http://localhost:3030/mainnet/slipstream/plugins
Delete/Unload a new plugin at runtime
curl -X DELETE \
http://localhost:3030/mainnet/slipstream/plugins/{plugin_name}
Notes